package com.dc.seckill;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient
@SpringBootApplication
public class MainApplication {

	 public static void main(String[] args) throws Exception {
	        SpringApplication.run(MainApplication.class, args);
		 
//		 String driver = "com.mysql.jdbc.Driver";
//		 Class.forName(driver);
//		 String url = "jdbc:mysql://127.0.0.1:3306/miaosha?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false";
//		 Connection connection = DriverManager.getConnection(url,"root","123djs");
////		 Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/miaosha","root","123js");
//		 PreparedStatement preparedStatement = connection.prepareStatement("select * from user");
//		 ResultSet resultSet = preparedStatement.executeQuery();
//		 while(resultSet.next()){
//			 System.out.println(resultSet.getString(1));
//			 
//		 }
//		 System.out.println(123);
	 }
	
}
